package org.dftproject.genesis.ui;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.ISharedImages;

public class SharedImages implements ISharedImages {
	
	public static final String IMG_MALE = "male";
	public static final String IMG_FEMALE = "female";
	public static final String IMG_NULL = "null";
	
	public static final String IMG_WORLD = "world";
	public static final String IMG_WARNING = "warning";
	
	private static final SharedImages singleton = new SharedImages();
	
	private SharedImages() {
	}
	
	public static SharedImages getDefault() {
		return singleton;
	}

	public Image getImage(String key) {
		return Activator.getDefault().getImageRegistry().get(key);
	}

	public ImageDescriptor getImageDescriptor(String key) {
		return Activator.getDefault().getImageRegistry().getDescriptor(key);
	}

}
